{if !$DT[page_bigcat]}
<table width="100%" cellpadding="0" cellspacing="0">
{php $child = get_maincat(0, $mid, 1);}
{loop $child $i $c}
{if $i%2==0}<tr{if $i%4==2} bgcolor="#F9F9F9"{/if}>{/if}
<td valign="top" width="50%" class="catalog_tds">
<p>
	<a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="px15"><strong>{set_style($c[catname], $c[style])}</strong></a>
	{if $c[child]}
	{php $sub = get_maincat($c[catid], $mid, 2);}
	{loop $sub $j $s}{if $j < 5} <a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}"><strong>{set_style($s[catname], $s[style])}</strong></a>{/if}{/loop}
	{/if}
</p>
{if $c[child]}
{php $sub = get_maincat($c[catid], $mid, 1);}
	<ul>
	{loop $sub $j $s}
	<li><a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" class="g">{set_style($s[catname], $s[style])}</a></li>
	{/loop}
	{if $j>8}<li><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="g">更多</a></li>{/if}
	</ul>
	<div class="c_b"></div>
{/if}
</td>
{if $i%2==1}</tr>{/if}
{/loop}
</table>
{else}
{php $BIG = explode('|', $DT[page_bigcat]);}
{loop $BIG $kkk $vvv}
{if $kkk}<div class="b5 c_b"></div>{/if}
<div class="catalog_on_1" onmouseover="this.className='catalog_on_2';" onmouseout="this.className='catalog_on_1';">
<table width="100%" cellspacing="2" cellspacing="2">
<tr>
<td class="catalog_tdl">{$vvv}</td>
<td class="catalog_tdr">
	<table width="100%" cellpadding="0" cellspacing="0">
	{php $child = get_maincat(0, $mid, $kkk+1);}
	{loop $child $i $c}
	{if $i%2==0}<tr>{/if}
	<td valign="top" width="50%" class="catalog_tds">
	<p>
		<a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="px15"><strong>{set_style($c[catname], $c[style])}</strong></a>
		{if $c[child]}
		{php $sub = get_maincat($c[catid], $mid, 2);}
		{loop $sub $j $s}{if $j < 5} <a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}"><strong>{set_style($s[catname], $s[style])}</strong></a>{/if}{/loop}
		{/if}
	</p>
	{if $c[child]}
	{php $sub = get_maincat($c[catid], $mid, 1);}
		<ul>
		{loop $sub $j $s}
		<li><a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" class="g">{set_style($s[catname], $s[style])}</a></li>
		{/loop}
		{if $j>8}<li><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="g">更多</a></li>{/if}
		</ul>
		<div class="c_b"></div>
	{/if}
	</td>
	{if $i%2==1}</tr>{/if}
	{/loop}
	</table>
</td>
</tr>
</table>
</div>
{/loop}
{/if}